#ifndef __SOLDIER_TYPE_H__
#define __SOLDIER_TYPE_H__

#include "../import/head.h"
#include "../tools/head.h"

//////////////////////////////////////////////////////////////////////////////////
// 

namespace xos_sgsj
{

	class soldier_type : public xos_stl::mem_pool_item< soldier_type, thread_lock >
    {
    public:
        soldier_type();
        ~soldier_type();

	public:
		static int add( const char * lpszName, 
			const char * lpszCode, 
			int nId, 
			int attack,
			int defend,
			int life,
			int speed,
			int distance,
			int eat,
			int weight,
			int population,
			int * lpIntId );
		static int del( const char * lpszName, const char * lpszCode, int nId );
		static int modify( int nId, 
			const char * lpszName, 
			const char * lpszCode,
			int attack,
			int defend,
			int life,
			int speed,
			int distance,
			int eat,
			int weight,
			int population );
		static int get( const char * lpszName, const char * lpszCode, int nId, soldier_type::LIST * pRetList );

	public:
		int soldier_type_id;
		char name[64];
		char code[64];
		int attack;
		int defend;
		int life;
		int speed;
		int distance;
		int eat;
		int weight;
		int population;

    public:
		int release();
        int init();
        int term();
    };
} // xos_sgsj

#endif // __SOLDIER_TYPE_H__
